<?php
/* @var $this DichvuController */
/* @var $model Dichvu */
/* @var $form CActiveForm */
?>
<div class="form">

<?php $form=$this->beginWidget('ext.bootstrap.widgets.TbActiveForm', array(
	'id'=>'dichvu-form',
	'enableAjaxValidation'=>false,
)); ?>
	<?php echo $form->errorSummary($model); ?>
	<div class="row">
		<?php echo $form->labelEx($model,'idnhomdichvu'); 
		echo $form->dropDownList($model,'idnhomdichvu', $nhomdichvu);
		 echo $form->error($model,'idnhomdichvu');
		 ?>
	</div> 
	<div class="row">
		<?php echo $form->labelEx($model,'tendichvu'); ?>
		<?php echo $form->textField($model,'tendichvu',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'tendichvu'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'gia'); ?>
		<?php echo $form->textField($model,'gia'); ?>
		<?php echo $form->error($model,'gia'); ?>
	</div>
	<div class="row">	<?php $loai = array(array('label'=>'', 'value'=>''),						array('label'=>'Database', 'value'=>'Database'),						array('label'=>'Calculator', 'value'=>'Calculator'),);?>
		<?php echo $form->labelEx($model,'loaicode'); ?>
		<?php echo $form->dropDownList($model,'loaicode', CHtml::listData($loai,'value','label')); ?>
		<?php echo $form->error($model,'loaicode'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'thoigian'); ?>
		<?php echo $form->textField($model,'thoigian',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'thoigian'); ?>
	</div>		<div class="row">		<?php echo $form->labelEx($model,'ghichu'); ?>		<?php echo $form->textField($model,'ghichu'); ?>		<?php echo $form->error($model,'ghichu'); ?>	</div>		<div class="row">		<?php echo $form->labelEx($model,'uutien'); ?>		<?php echo $form->textField($model,'uutien'); ?>		<?php echo $form->error($model,'uutien'); ?>	</div>		<div class="row">		<?php 	$trangthai = array(   array('value'=> 0, 'label' => "Tắt"),    array('value'=> 1, 'label' => "Bật"),);	?>			<?php echo $form->labelEx($model,'trangthai'); ?>		<?php echo $form->dropDownList($model,'trangthai',CHtml::listData($trangthai,'value','label')); ?>		<?php echo $form->error($model,'trangthai'); ?>	</div>	
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->